<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/layui/css/layui.css">
<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/common.css">
<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/gloab.css" />
</head>

<body>
	<div class="" style="margin-left: 15px;">
		<%-- <fieldset class="layui-elem-field layui-field-title">
			<legend>${title }</legend>
		</fieldset> --%>
		<form class="layui-form layui-form-pane"  id="commonForm">
			<%-- <input type="hidden" name="title" value="${title }"/>
 --%>			<input type="hidden" name="id" value="${emp.id }"/>
			
			<div class="layui-form-item">
				<label class="layui-form-label">工号</label>
				<div class="layui-input-block">
					<input type="text" name="eid" lay-verify="required" autocomplete="off" placeholder="请输入工号" class="layui-input" maxlength="12" value="${emp.eid}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入姓名" class="layui-input" maxlength="12" value="${emp.name}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">性别</label>
				<div class="layui-input-block">
					<input type="radio" name="sex" value="男" title="男">
					<input type="radio" name="sex" value="女" title="女" checked>
				</div>
			</div>
			<div class="layui-form-item">	
				<label class="layui-form-label">民族</label>
				<div class="layui-input-block">
					<input type="text" name="minzu" lay-verify="required" autocomplete="off"  class="layui-input" maxlength="12" value="${emp.minzu}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">血型</label>
				<div class="layui-input-block">
					<input type="text" name="bloodtype" lay-verify="required" autocomplete="off" class="layui-input" maxlength="12" value="${emp.bloodtype}">
				</div>
			</div>
		
			<div class="layui-form-item">
				<label class="layui-form-label">身份证号</label>
				<div class="layui-input-block">
					<input type="text" name="cardid" lay-verify="required" autocomplete="off" placeholder="请输入身份证号" class="layui-input" maxlength="12" value="${emp.cardid }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">电话</label>
				<div class="layui-input-block">
					<input type="text" name="telnumber" lay-verify="required" autocomplete="off" placeholder="请输入电话" class="layui-input" maxlength="12" value="${emp.telnumber}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">QQ</label>
				<div class="layui-input-block">
					<input type="text" name="qq" lay-verify="required" autocomplete="off" placeholder="请输入QQ" class="layui-input" maxlength="12" value="${emp.qq}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">邮箱</label>
				<div class="layui-input-block">
					<input type="text" name="email" lay-verify="required" autocomplete="off" placeholder="请输入邮箱" class="layui-input" maxlength="12" value="${emp.email }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">入职时间</label>
				<div class="layui-input-block">
					<input type="text" name="" lay-verify="required" autocomplete="off" placeholder="" class="layui-input laydate-icon" maxlength="12" value="${m.editioncount }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">部门</label>
				<div class="layui-input-block">
					<input type="text" name="departid" lay-verify="required" autocomplete="off" placeholder="请输入部门" class="layui-input" maxlength="12" value="${emp.departid }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">职员状态</label>
				<div class="layui-input-block">
					<input type="text" name="status" lay-verify="required" autocomplete="off" placeholder="" class="layui-input" maxlength="12" value="${emp.status }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">学历</label>
				<div class="layui-input-block">
					<input type="text" name="education" lay-verify="required" autocomplete="off" placeholder="请输入学历" class="layui-input" maxlength="12" value="${emp.education }">
				</div>
			</div>
		
			<div class="layui-form-item">
				<label class="layui-form-label">薪资待遇</label>
				<div class="layui-input-block">
					<input type="text" name="salary" lay-verify="required" autocomplete="off" placeholder="请输入薪资待遇" class="layui-input" maxlength="12" value="${emp.salary}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">所在城市</label>
				<div class="layui-input-block">
					<input type="text" name="city" lay-verify="required" autocomplete="off" placeholder="请输入所在城市" class="layui-input" maxlength="12" value="${emp.city}">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">地址</label>
				<div class="layui-input-block">
					<input type="text" name="address" lay-verify="required" autocomplete="off" placeholder="请输入地址" class="layui-input" maxlength="12" value="${m.editioncount }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">开户银行</label>
				<div class="layui-input-block">
					<input type="text" name="bankname" lay-verify="required" autocomplete="off" placeholder="请输入开户银行" class="layui-input" maxlength="12" value="${emp.bankname }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">银行账号</label>
				<div class="layui-input-block">
					<input type="text" name="banknumber" lay-verify="required" autocomplete="off" placeholder="请输入银行账号" class="layui-input" maxlength="12" value="${emp.banknumber }">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">银行账户名称</label>
				<div class="layui-input-block">
					<input type="text" name="zhname" lay-verify="required" autocomplete="off" placeholder="请输入银行名称" class="layui-input" maxlength="12" value="${emp.zhname }">
				</div>
			</div>
		
			<div class="layui-form-item clearfix">
  		  		<div class="xbzx_btn_save_group">
				  <button class="layui-btn save" id="submitButton" xbzx-data-type="save" lay-submit="" lay-filter="commonSubmit">保存</button>
				  <a class="layui-btn cancel" href="javascript:;" xbzx-data-type="cancel" lay-filter="">取消</a>
			  	</div>
			</div>
		</form>
	</div>
	<script src="/resource/js/jquery/jquery-1.9.1.js" charset="utf-8" type="text/javascript"></script>
	<script src="/resource/layui/layui.js" charset="utf-8" type="text/javascript"></script>
	<script type="text/javascript">
			window.onload = function() {
			   layui.config({
					base: '/resource/js/xbzx_modules/' //xbzx模块目录
				}).use(['commonsubmit']); 
	
				layui.config({
					base: '/resource/js/xbzx_modules/' //xbzx模块目录
				}).use('xbzx-cms-form'); //加载formJs文件入口
			};
			
		$(function(){
			$("#submitButton").click(function(){
				$.ajax({
					type:'post',
					url:'save',
					data:$("#commonForm").serialize(),
					success:function(res){
						if(res.result=='success'){
							layer.msg("保存成功");
							window.location.href="index";
						}else{
							layer.msg("保存失败");
						}
					}
				});
			});
		});
		</script>
</body>
</html>
